package com.sunb2b.service;

import java.util.List;

import javax.inject.Inject;

import org.springframework.stereotype.Service;

import com.sunb2b.dao.RegionDAO;
import com.sunb2b.entity.Region;

@Service
public class RegionService {
    @Inject
    private RegionDAO regionDAO;
    
    public List getSubRegions(String id){
        return regionDAO.findSubRegions(id);
    }
    
    public List getAllRegions(){
        return regionDAO.findAll();
    }
    
    public Region getRegion(String id){
        return regionDAO.findById(id);
    }
}
